Modal

<modal-dialog centered="true" modalid="myModal">
  <test-tag name="{opts.name}" />
</modal-dialog>
<button type="button" class="btn btn-primary btn-lg" data-toggle="modal" data-target="#myModal">
  Launch demo modal
</button>
var modal = riot.mount('modal-dialog', {
  // pass the name to the custom test-tag
  name: 'Genuine Zebra',
  timestamp: '2016-09-26T06:02:17-05:00',
  header: {
    title: 'Modal title',
    close: true
  },
  buttons: [
    {
      text: 'Close',
      dismiss: true
    },
    {
      text: 'Save',
      type: 'primary',
      dismiss: true,
      onclick: function () {
        console.log('modal save');
      }
    }
  ]
})[0];